home *** CD-ROM | disk | FTP | other *** search
/ Apple Reference & Presen…tion Library 4 (Reseller) / Apple Ref. & Pres. Lib.v4.0.iso / 6-Apple⁄DEC Alliance / Solutions & Networking Guide / Macintosh Networking Guide / Macintosh Networking Guide / background_21186.txt < prev    next >
Text File  |  1990-04-17  |  12KB  |  530 lines

  1. -- background: 21186 from stack: in
  2. -- bmap block id: 21334
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: Chooser
  6. ----- HyperTalk script -----
  7. on parseR
  8.   global holder,Reads,prodname
  9.   put empty into Reads
  10.   repeat with i = 1 to the number of lines of holder
  11.     if item 1 of line i of holder is prodname then
  12.       put item 4 of line i of holder into dotnames
  13.       repeat
  14.         put offset("‚Ä¢",dotnames) into num
  15.         if num is empty or num is 0 then exit repeat
  16.         put char 1 to (num - 1) of dotnames & return after Reads
  17.         delete char 1 to num of dotnames
  18.       end repeat
  19.     end if
  20.   end repeat
  21. end parseR
  22.  
  23. on parseW
  24.   global holder,Writes,prodname
  25.   put empty into Writes
  26.   repeat with i = 1 to the number of lines of holder
  27.     if item 1 of line i of holder is prodname then
  28.       put item 5 of line i of holder into dotnames
  29.       repeat
  30.         put offset("‚Ä¢",dotnames) into num
  31.         if num is empty or num is 0 then exit repeat
  32.         put char 1 to (num - 1) of dotnames & return after Writes
  33.         delete char 1 to num of dotnames
  34.       end repeat
  35.     end if
  36.   end repeat
  37. end parseW
  38.  
  39. on parseN
  40.   global holder,Network,prodname
  41.   put empty into Network
  42.   repeat with i = 1 to the number of lines of holder
  43.     if item 1 of line i of holder is prodname then
  44.       put item 6 of line i of holder into dotnames
  45.       repeat
  46.         put offset("‚Ä¢",dotnames) into num
  47.         if num is empty or num is 0 then exit repeat
  48.         put char 1 to (num - 1) of dotnames & return after Network
  49.         delete char 1 to num of dotnames
  50.       end repeat
  51.     end if
  52.   end repeat
  53. end parseN
  54.  
  55. on parseR2
  56.   global holder2,Reads2,prodname2
  57.   put empty into Reads2
  58.   repeat with i = 1 to the number of lines of holder2
  59.     if item 2 of line i of holder2 is prodname2 then
  60.       put item 4 of line i of holder2 into dotnames
  61.       repeat
  62.         put offset("‚Ä¢",dotnames) into num
  63.         if num is empty or num is 0 then exit repeat
  64.         put char 1 to (num - 1) of dotnames & return after Reads2
  65.         delete char 1 to num of dotnames
  66.       end repeat
  67.     end if
  68.   end repeat
  69. end parseR2
  70.  
  71. on parseW2
  72.   global holder2,Writes2,prodname2
  73.   put empty into Writes2
  74.   repeat with i = 1 to the number of lines of holder2
  75.     if item 2 of line i of holder2 is prodname2 then
  76.       put item 5 of line i of holder2 into dotnames
  77.       repeat
  78.         put offset("‚Ä¢",dotnames) into num
  79.         if num is empty or num is 0 then exit repeat
  80.         put char 1 to (num - 1) of dotnames & return after Writes2
  81.         delete char 1 to num of dotnames
  82.       end repeat
  83.     end if
  84.   end repeat
  85. end parseW2
  86.  
  87. on parseN2
  88.   global holder2,Network2,prodname2
  89.   put empty into Network2
  90.   repeat with i = 1 to the number of lines of holder2
  91.     if item 2 of line i of holder2 is prodname2 then
  92.       put item 6 of line i of holder2 into dotnames
  93.       repeat
  94.         put offset("‚Ä¢",dotnames) into num
  95.         if num is empty or num is 0 then exit repeat
  96.         put char 1 to (num - 1) of dotnames & return after Network2
  97.         delete char 1 to num of dotnames
  98.       end repeat
  99.     end if
  100.   end repeat
  101. end parseN2
  102.  
  103. on clean
  104. end clean
  105.  
  106.  
  107.  
  108. -- part 9 (field)
  109. -- low flags: 81
  110. -- high flags: 6004
  111. -- rect: left=253 top=122 right=279 bottom=395
  112. -- title width / last selected line: 0
  113. -- icon id / first selected line: 0 / 0
  114. -- text alignment: 0
  115. -- font id: 242
  116. -- text size: 12
  117. -- style flags: 8192
  118. -- line height: 12
  119. -- part name: EnvExplainer
  120. ----- HyperTalk script -----
  121. on mouseUp
  122.   put empty into me
  123.   hide me
  124.   put empty into field "Explainer"
  125.   hide field "Explainer"
  126. end mouseUp
  127.  
  128.  
  129. -- part 11 (field)
  130. -- low flags: 81
  131. -- high flags: 2002
  132. -- rect: left=142 top=68 right=173 bottom=347
  133. -- title width / last selected line: 0
  134. -- icon id / first selected line: 0 / 0
  135. -- text alignment: 0
  136. -- font id: 3
  137. -- text size: 10
  138. -- style flags: 0
  139. -- line height: 13
  140. -- part name: Explainer
  141. ----- HyperTalk script -----
  142. on mouseUp
  143.   global help
  144.   put false into help
  145.   set hilite of bkgnd btn help to false
  146.   put empty into me
  147.   hide me
  148.   put empty into field "Explainer"
  149.   hide field "Explainer"
  150. end mouseUp
  151.  
  152.  
  153.  
  154. -- part 59 (field)
  155. -- low flags: 01
  156. -- high flags: 2002
  157. -- rect: left=168 top=303 right=342 bottom=344
  158. -- title width / last selected line: 0
  159. -- icon id / first selected line: 0 / 0
  160. -- text alignment: 1
  161. -- font id: 242
  162. -- text size: 12
  163. -- style flags: 0
  164. -- line height: 16
  165. -- part name: Tell
  166. ----- HyperTalk script -----
  167. on mouseEnter
  168.   put "Message Field" & return & "displays help information" into fld "Tell"
  169. end mouseEnter
  170.  
  171. on mouseLeave
  172.   put empty into fld "Tell"
  173. end mouseLeave
  174.  
  175.  
  176. -- part 69 (button)
  177. -- low flags: 00
  178. -- high flags: A001
  179. -- rect: left=348 top=217 right=245 bottom=405
  180. -- title width / last selected line: 0
  181. -- icon id / first selected line: 0 / 0
  182. -- text alignment: 1
  183. -- font id: 0
  184. -- text size: 12
  185. -- style flags: 0
  186. -- line height: 16
  187. -- part name: OK
  188. ----- HyperTalk script -----
  189. on mouseUp
  190.   global theRoom,env,network,network1,service
  191.   set cursor to busy
  192.   set lockscreen to true
  193.   if env is "Mac" then
  194.     put "RoomMac" into theRoom
  195.     unlock screen with dissolve
  196.     go cd "Network" && theRoom
  197.     exit mouseUp
  198.   end if
  199.   if env is "PC" then
  200.     put "RoomMicro" into theRoom
  201.   else
  202.     put "Room" into theRoom
  203.   end if
  204.   put cd fld "Choice" into service
  205.   put service into network1
  206.   go cd "Network" && theRoom
  207.   unlock screen with dissolve
  208. end mouseUp
  209.  
  210. on mouseDown
  211.   Global ClickSND
  212.   play ClickSND
  213. End mouseDown
  214.  
  215. on mouseEnter
  216.   changeCurs 6069
  217.   put "OK Button" & return & "click to return to room" into fld "Tell"
  218. end mouseEnter
  219.  
  220. on mouseLeave
  221.   changeCurs 69
  222.   put empty into fld "Tell"
  223. end mouseleave
  224.  
  225.  
  226.  
  227. -- part 70 (button)
  228. -- low flags: 00
  229. -- high flags: 2002
  230. -- rect: left=343 top=303 right=342 bottom=386
  231. -- title width / last selected line: 0
  232. -- icon id / first selected line: 1409 / 1409
  233. -- text alignment: 1
  234. -- font id: 0
  235. -- text size: 12
  236. -- style flags: 0
  237. -- line height: 16
  238. -- part name: Outliner
  239. ----- HyperTalk script -----
  240. on mouseUp
  241.   global Mack,Host
  242.   set cursor to busy
  243.   push card
  244.   visual effect dissolve
  245.   put false into Mack
  246.   put false into Host
  247.   go to cd "Outliner"
  248.   click at 10,10
  249. end mouseUp
  250.  
  251. on mouseEnter
  252.   changeCurs 6069
  253.   put "Outliner Button" & return & "use outline navigation" into fld "Tell"
  254. end mouseEnter
  255.  
  256. On mouseDown
  257.   global ButtonSND
  258.   play ButtonSND
  259. End mouseDown
  260.  
  261. on mouseLeave
  262.   put empty into fld "Tell"
  263.   changeCurs 69
  264. end mouseLeave
  265.  
  266.  
  267.  
  268. -- part 71 (button)
  269. -- low flags: 00
  270. -- high flags: 2002
  271. -- rect: left=385 top=303 right=342 bottom=428
  272. -- title width / last selected line: 0
  273. -- icon id / first selected line: 18849 / 18849
  274. -- text alignment: 1
  275. -- font id: 0
  276. -- text size: 12
  277. -- style flags: 0
  278. -- line height: 16
  279. -- part name: Lobby
  280. ----- HyperTalk script -----
  281. on mouseUp
  282.   set lockscreen to true
  283.   set cursor to busy
  284.   push card
  285.   unlock screen with dissolve
  286.   go to cd "Lobby"
  287. end mouseUp
  288.  
  289. on mouseEnter
  290.   changeCurs 6069
  291.   put "Lobby Button" & return & "use building navigation" into fld "Tell"
  292. end mouseEnter
  293.  
  294. On mouseDown
  295.   global ButtonSND
  296.   play ButtonSND
  297. End mouseDown
  298.  
  299. on mouseLeave
  300.   put empty into fld "Tell"
  301.   changeCurs 69
  302. end mouseLeave
  303.  
  304.  
  305. -- part 72 (button)
  306. -- low flags: 00
  307. -- high flags: 2002
  308. -- rect: left=427 top=303 right=342 bottom=470
  309. -- title width / last selected line: 0
  310. -- icon id / first selected line: 30492 / 30492
  311. -- text alignment: 1
  312. -- font id: 0
  313. -- text size: 12
  314. -- style flags: 0
  315. -- line height: 16
  316. -- part name: Kiosk
  317. ----- HyperTalk script -----
  318. on mouseUp
  319.   push card
  320.   set lockscreen to true
  321.   set cursor to busy
  322.   go to cd "Matrix"
  323.   unlock screen with visual effect dissolve
  324. end mouseUp
  325.  
  326. on mouseEnter
  327.   changeCurs 6069
  328.   put "Matrix Button" & return & "use matrix navigation" into fld "Tell"
  329. end mouseEnter
  330.  
  331. On mouseDown
  332.   global ButtonSND
  333.   play ButtonSND
  334. End mouseDown
  335.  
  336. on mouseLeave
  337.   put empty into fld "Tell"
  338.   changeCurs 69
  339. end mouseLeave
  340.  
  341.  
  342.  
  343. -- part 73 (button)
  344. -- low flags: 00
  345. -- high flags: 2002
  346. -- rect: left=469 top=303 right=342 bottom=512
  347. -- title width / last selected line: 0
  348. -- icon id / first selected line: 9301 / 9301
  349. -- text alignment: 1
  350. -- font id: 0
  351. -- text size: 12
  352. -- style flags: 0
  353. -- line height: 16
  354. -- part name: GoBack
  355. ----- HyperTalk script -----
  356. on mouseUp
  357.   set lockscreen to true
  358.   set cursor to busy
  359.   go Back
  360.   unlock screen with visual effect wipe right
  361. end mouseUp
  362.  
  363. on mouseEnter
  364.   changeCurs 6069
  365.   put "Go Back Button" & return & "click to go to prev card" into fld "Tell"
  366. end mouseEnter
  367.  
  368. On mouseDown
  369.   global ButtonSND
  370.   play ButtonSND
  371. End mouseDown
  372.  
  373. on mouseLeave
  374.   changeCurs 69
  375.   put empty into fld "Tell"
  376. end mouseLeave
  377.  
  378.  
  379. -- part 74 (button)
  380. -- low flags: 00
  381. -- high flags: 2002
  382. -- rect: left=126 top=303 right=342 bottom=169
  383. -- title width / last selected line: 0
  384. -- icon id / first selected line: 1007 / 1007
  385. -- text alignment: 1
  386. -- font id: 0
  387. -- text size: 12
  388. -- style flags: 0
  389. -- line height: 16
  390. -- part name: Printer
  391. ----- HyperTalk script -----
  392. on mouseUp
  393.   set cursor to busy
  394.   print card
  395. end mouseUp
  396.  
  397. on mouseEnter
  398.   changeCurs 6069
  399.   put "Printer Button" & return & "click to print this image" into fld "Tell"
  400. end mouseEnter
  401.  
  402. On mouseDown
  403.   global ButtonSND
  404.   play ButtonSND
  405. End mouseDown
  406.  
  407. on mouseLeave
  408.   put empty into fld "Tell"
  409.   changeCurs 69
  410. end mouseLeave
  411.  
  412.  
  413. -- part 75 (button)
  414. -- low flags: 00
  415. -- high flags: 2002
  416. -- rect: left=84 top=303 right=342 bottom=127
  417. -- title width / last selected line: 0
  418. -- icon id / first selected line: 20358 / 20358
  419. -- text alignment: 1
  420. -- font id: 0
  421. -- text size: 12
  422. -- style flags: 0
  423. -- line height: 16
  424. -- part name: Glossary
  425. ----- HyperTalk script -----
  426. on mouseUp
  427.   set cursor to busy
  428.   get short name of this card
  429.   if it is "Outliner" then clearF
  430.   push card
  431.   visual effect iris open
  432.   go cd "glossary"
  433. end mouseUp
  434.  
  435. on mouseEnter
  436.   put "Glossary Button" & return & "click to go to the Glossary" into fld "Tell"
  437.   changeCurs 6069
  438. end mouseEnter
  439.  
  440. On mouseDown
  441.   global ButtonSND
  442.   play ButtonSND
  443. End mouseDown
  444.  
  445. on mouseleave
  446.   put empty into fld "Tell"
  447.   changeCurs 69
  448. end mouseLeave
  449.  
  450.  
  451.  
  452. -- part 76 (button)
  453. -- low flags: 00
  454. -- high flags: 2002
  455. -- rect: left=42 top=303 right=342 bottom=85
  456. -- title width / last selected line: 0
  457. -- icon id / first selected line: 21375 / 21375
  458. -- text alignment: 1
  459. -- font id: 0
  460. -- text size: 12
  461. -- style flags: 0
  462. -- line height: 16
  463. -- part name: Outline mode
  464. ----- HyperTalk script -----
  465. on mouseEnter
  466.   changeCurs 6069
  467.   put "Briefing Button" & return & "click to go to briefing room" into fld "Tell"
  468. end mouseEnter
  469.  
  470. on mouseUp
  471.   set lockscreen to true
  472.   set cursor to busy
  473.   push card
  474.   go to cd "Briefing Room"
  475.   unlock screen with dissolve
  476.   pass mouseUp
  477. end mouseUp
  478.  
  479. On mouseDown
  480.   global ButtonSND
  481.   play ButtonSND
  482. End mouseDown
  483.  
  484. on mouseLeave
  485.   put empty into fld "Tell"
  486.   changeCurs 69
  487. end mouseLeave
  488.  
  489.  
  490. -- part 77 (button)
  491. -- low flags: 00
  492. -- high flags: 2002
  493. -- rect: left=0 top=303 right=342 bottom=43
  494. -- title width / last selected line: 0
  495. -- icon id / first selected line: 10112 / 10112
  496. -- text alignment: 1
  497. -- font id: 0
  498. -- text size: 12
  499. -- style flags: 0
  500. -- line height: 16
  501. -- part name: EXIT
  502. ----- HyperTalk script -----
  503. on mouseEnter
  504.   changeCurs 6069
  505.   put "Exit Button" & return & "click to quit or go home" into fld "Tell"
  506. end mouseEnter
  507.  
  508. on mouseUp
  509.   set lockscreen to true
  510.   answer "Would you like to Quit, go Home, or Cancel" with "Quit" or "Home" or "Cancel"
  511.   unlock screen with dissolve
  512.   set lockscreen to true
  513.   if it is "Quit" then doMenu "Quit HyperCard"
  514.   if it is "Home" then
  515.     put empty into field "Explainer"
  516.     domenu Home
  517.   end if
  518.   unlock screen with dissolve
  519. end mouseUp
  520.  
  521. On mouseDown
  522.   global ButtonSND
  523.   play ButtonSND
  524. End mouseDown
  525.  
  526. on mouseLeave
  527.   put empty into fld "Tell"
  528.   changeCurs 69
  529. end mouseLeave
  530.